package com.lin.repository;


import com.lin.dataobject.TSRegion;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by Administrator on 2017/9/21.
 */
public interface RegionRepository extends JpaRepository<TSRegion,String>{
    TSRegion findById(String id);

    Long countByPid(String pid);

    List<TSRegion> findByPid(String pid);
}
